#ifndef		CONNECTED_HPP_
# define	CONNECTED_HPP_

# include	<iostream>
# include	<list>

# include	"Buffer.hpp"

class Connected
{
private:
  int			Fd;
  Buffer		ReadBuf;
  std::list<Buffer *>	WriteBuf;

public:
  Connected();
  ~Connected();
  
  int	GetFd(void);
  void	SetFd(int fd);

  Buffer &GetReadBuf(void);
  std::list<Buffer *>	&GetWriteBuf(void);

  int	CheckCompleteBuf();
  int	AddListWrite(char	*buf,
		     int	sizeBuf);
};

#endif		/* CONNECTED_HPP_ */
